package com.ebt.m.users;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.ebt.m.R;
import com.ebt.m.commons.buscomponent.listview.IView;
import com.ebt.m.commons.utils.Logger;

import butterknife.BindView;
import butterknife.ButterKnife;

public class CardIntroductionView extends IView {


    @BindView(R.id.item_root)
    LinearLayout itemRoot;
    @BindView(R.id.carddata_introduction)
    TextView carddataIntroduction;

    public CardIntroductionView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        inflate(context, R.layout.layout_carddata_introduction, this);
        ButterKnife.bind(this);
    }

    public CardIntroductionView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public CardIntroductionView(Context context) {
        this(context, null);
    }

    @Override
    public void update(Object... obj) {
        try {
            String tagName = (String) obj[0];
            carddataIntroduction.setText(tagName);
        } catch (Exception e) {
            Logger.e(e);
        }

    }


}
